const EventEmitter = require('events');

// 定义 Dog 构造函数，继承 EventEmitter
class Dog extends EventEmitter {
  constructor(name, energy) {
    super();
    this.name = name;
    this.energy = energy;
  }
}

module.exports = Dog;